/*
 * @Description: AK API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2023-03-24 15:19:59
 */
import http from '@/utils/http/axios'

export function getServerList(params) {
  return http.request({
    url: '/ak/list',
    method: 'GET',
    params
  })
}
export function getAllAkList(params) {
  return http.request({
    url: '/ak/all_ak_list',
    method: 'GET',
    params
  })
}
export function delServerBatch(params) {
  return http.request(
    {
      url: '/ak/del_batch',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delServerItem(params) {
  return http.request(
    {
      url: '/ak/del',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}

export function editServerInfo(params) {
  return http.request(
    {
      url: '/ak/edit_info',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
